
<%@ page import="fleet_management.DriverDetails" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'driverDetails.label', default: 'DriverDetails')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#show-driverDetails" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
				<li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="show-driverDetails" class="content scaffold-show" role="main">
			<h1 style="margin-left:220px; width: 850px;">Driver Details</h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<ol class="property-list driverDetails">
			
				<g:if test="${driverDetailsInstance?.driverName}">
				<li class="fieldcontain">
					<span id="driverName-label" class="property-label"><g:message code="driverDetails.driverName.label" default="Name Of Driver" /></span>
					
						<span class="property-value" aria-labelledby="driverName-label"><g:fieldValue bean="${driverDetailsInstance}" field="driverName"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${driverDetailsInstance?.permanentResidenceAddress}">
				<li class="fieldcontain">
					<span id="permanentResidenceAddress-label" class="property-label"><g:message code="driverDetails.permanentResidenceAddress.label" default="Permanent Residence Address" /></span>
					
						<span class="property-value" aria-labelledby="permanentResidenceAddress-label"><g:fieldValue bean="${driverDetailsInstance}" field="permanentResidenceAddress"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${driverDetailsInstance?.contactNumber}">
				<li class="fieldcontain">
					<span id="contactNumber-label" class="property-label"><g:message code="driverDetails.contactNumber.label" default="Contact Number" /></span>
					
						<span class="property-value" aria-labelledby="contactNumber-label"><g:fieldValue bean="${driverDetailsInstance}" field="contactNumber"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${driverDetailsInstance?.licenseNumber}">
				<li class="fieldcontain">
					<span id="licenseNumber-label" class="property-label"><g:message code="driverDetails.licenseNumber.label" default="License Number" /></span>
					
						<span class="property-value" aria-labelledby="licenseNumber-label"><g:fieldValue bean="${driverDetailsInstance}" field="licenseNumber"/></span>
					
				</li>
				</g:if>
				
				
				<g:if test="${driverDetailsInstance?.currentLocation}">
				<li class="fieldcontain">
					<span id="currentLocation-label" class="property-label"><g:message code="driverDetails.currentLocation.label" default="Current Location" /></span>
					
						<span class="property-value" aria-labelledby="currentLocation-label"><g:fieldValue bean="${driverDetailsInstance}" field="currentLocation"/></span>
					
				</li>
				</g:if>
				
				
				<g:if test="${driverDetailsInstance?.dateOfBirth}">
				<li class="fieldcontain">
					<span id="dateOfBirth-label" class="property-label"><g:message code="driverDetails.dateOfBirth.label" default="Date Of Birth" /></span>
					
						<span class="property-value" aria-labelledby="dateOfBirth-label"><g:formatDate format="MMMM dd, yyyy" date="${driverDetailsInstance?.dateOfBirth}" /></span>
					
				</li>
				</g:if>
				
				
				<g:if test="${driverDetailsInstance?.approximateYearOfRetirement}">
				<li class="fieldcontain">
					<span id="approximateYearOfRetirement-label" class="property-label"><g:message code="driverDetails.approximateYearOfRetirement.label" default="Approximate Year of Retirement" /></span>
					
						<span class="property-value" aria-labelledby="approximateYearOfRetirement-label"><g:fieldValue bean="${driverDetailsInstance}" field="approximateYearOfRetirement"/></span>
					
				</li>
				</g:if>
				
				<g:if test="${driverDetailsInstance?.dateOfJoinSC}">
				<li class="fieldcontain">
					<span id="dateOfJoinSC-label" class="property-label"><g:message code="driverDetails.dateOfJoinSC.label" default="Date Of Join SC" /></span>
					
						<span class="property-value" aria-labelledby="dateOfJoinSC-label"><g:formatDate format="MMMM dd, yyyy" date="${driverDetailsInstance?.dateOfJoinSC}" /></span>
					
				</li>
				</g:if>
				
				
				<g:if test="${driverDetailsInstance?.noOfYearAtCurrentLocation}">
				<li class="fieldcontain">
					<span id="noOfYearAtCurrentLocation-label" class="property-label"><g:message code="driverDetails.noOfYearAtCurrentLocation.label" default="Number of Year at Current Location" /></span>
					
						<span class="property-value" aria-labelledby="noOfYearAtCurrentLocation-label"><g:fieldValue bean="${driverDetailsInstance}" field="noOfYearAtCurrentLocation"/></span>
					
				</li>
				</g:if>
				
				<g:if test="${driverDetailsInstance?.remarks}">
				<li class="fieldcontain">
					<span id="remarks-label" class="property-label"><g:message code="driverDetails.remarks.label" default="Remarks" /></span>
					
						<span class="property-value" aria-labelledby="remarks-label"><g:fieldValue bean="${driverDetailsInstance}" field="remarks"/></span>
					
				</li>
				</g:if>
				
				
				<g:if test="${driverDetailsInstance?.adminRole}">
				<li class="fieldcontain">
					<span id="adminRole-label" class="property-label"><g:message code="driverDetails.adminRole.label" default="Region Admin" /></span>
					
						<span class="property-value" aria-labelledby="adminRole-label"><g:fieldValue bean="${driverDetailsInstance}" field="adminRole"/></span>
				</li>
				</g:if>
			
			</ol>
			<g:form>
				<fieldset class="buttons">
					<g:hiddenField name="id" value="${driverDetailsInstance?.id}" />
					<g:link class="edit" action="edit" id="${driverDetailsInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
					<g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
				</fieldset>
			</g:form>
		</div>
	</body>
</html>
